/**
 * Proyecto: Cognitum
 * Global IT Services 2008
 * @author Esanantonio
 */

Cognitum.Cobranza.Factura.Entity = function() {
	
	if (LOG.isDebugEnabled()) {
		LOG.debug('[Factura.Entity.ctor] <-');
	}

	Cognitum.Cobranza.Factura.Entity.superclass.constructor.call(this);
	
	if (LOG.isDebugEnabled()) {
	    LOG.debug('[Factura.Entity.ctor] ->');
	}
	
}

Ext.extend(Cognitum.Cobranza.Factura.Entity, Karma.Core.Entity, {
    id: 'Factura.Entity',
    name: 'Facturas',
	editorXType: 'factura.editor',
	editorW: 1000,
	editorH: 400,
	columns: [{ Name: 'Id', Property: 'Id' }],
	searchlist: {
	    canNew: false,
	    canDelete: false,
	    canUpdate: false,
		sortings: [ 'Id' ],
		views: [
			{ Id: 0, Nombre: 'Normal', Template: null },
			{ Id: 1, Nombre: 'Expandida', Template: null }
		],
		previewTemplate: null		
	},
	link: {displayProperty: 'Id'}
});

Cognitum.Facturacion = Cognitum.Cobranza.Factura.Entity;